cmake_minimum_required(VERSION 2.8)
project(test_util)
add_compile_options(-std=c++0x)
set(CMAKE_INSTALL_PREFIX /usr/local)
set(CMAKE_MACOSX_RPATH 0)

set(CMAKE_CXX_FLAGS_DEBUG "$ENV{CXXFLAGS} -O0 -Wall -g -rdynamic -ggdb -Wno-sign-compare")
set(CMAKE_CXX_FLAGS_RELEASE "$ENV{CXXFLAGS} -O3 -Wall -rdynamic -Wno-sign-compare")
#set(CMAKE_SKIP_BUILD_RPATH TRUE)
#set(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE)
#set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)

aux_source_directory(. SRC)
add_executable(test_util_lib ${SRC})
include_directories(. ../util/WZTKUtil/include)
link_directories(/usr/local/lib)
target_link_libraries(test_util_lib wzutil pthread)

install(TARGETS test_util_lib 
        RUNTIME DESTINATION test_util_lib
)

